package org.patterns.behavior.visitor;


public class Client {
    public static void main(String[] args) {
        EmployeeList list = new EmployeeList();

        Employee fEmployee1 = new FulltimeEmployee("张无忌", 3200.00, 45);
        Employee fEmployee2 = new FulltimeEmployee("杨过", 2000.00, 40);
        Employee fEmployee3 = new FulltimeEmployee("段誉", 2400.00, 38);
        Employee pEmployee1 = new ParttimeEmployee("洪七公", 80.00, 20);
        Employee pEmployee2 = new ParttimeEmployee("郭靖", 60.00, 18);

        list.addEmployee(fEmployee1);
        list.addEmployee(fEmployee2);
        list.addEmployee(fEmployee3);
        list.addEmployee(pEmployee1);
        list.addEmployee(pEmployee2);

        Department department = (Department) XMLUtil.getBean();
        list.accept(department);
    }
}
